<template>
    <section>
        <sy-baselist
                ref="instock"
                editVue="./business/Stocking_Edit.vue"
                :filters="filters"
                listUrl="server/business/Stocking.ashx?cmd=GetList"
                deleteUrl="server/business/Stocking.ashx?cmd=Delete"
                @onLoadRow="onLoadRow"
        >
            <el-table-column prop="FTitle"  header-align="center" label="盘点标题"  width="180" >
            </el-table-column>
            <el-table-column prop="StonehouseName" label="仓库名称" width="150">
            </el-table-column>
            <el-table-column prop="FAddTime"  header-align="center" label="盘点时间"  width="180" >
            </el-table-column>
            <el-table-column prop="UserName" align="center"  header-align="center" label="操作人"  width="180" >
            </el-table-column>
        </sy-baselist>

    </section>
</template>

<script>
    import util from '../../common/util'
    export default {
        data(){
            return {
                filters: [{type: "string",name:"FTitle",text:"盘点标题"},
                    {type: "date",name:"FAddTime",text:"盘点时间", value: null},
                    {type: "select",name:"FStonehouseID",text:"仓库", data:"server/setting/Stonehouse.ashx?cmd=GetOptions"}]
            }
        },
        methods:{
            onLoadRow(row)
            {
                row.FAddTime = util.date.format(row.FAddTime,'yyyy-MM-dd hh:mm:ss')
            }
        },
        created(){

       }
    }
</script>